﻿@model CleverCMS.Cms.Services.ViewModels.PasswordResetModel

@section TitleContent
{
    Password Reset
}
@section HeadContent{
      @Scripts.Render("~/bundles/jqueryval")
}
<h2>Password Reset</h2>

<div class="row-fluid">
    <div class="span12">
        <div class="widget green">
            <div class="widget-title">
                <h4><i class="icon-reorder"></i>  Password reset form</h4>
            </div>
            <div class="widget-body form">
                @using (Html.BeginForm())
                {
                    
                    @Html.ValidationSummary(true, "Password reset was unsuccessful. Please correct the errors and try again.")
                    <div>
                        <div class="editor-label">
                            @Html.LabelFor(m => m.ResetToken)
                        </div>
                        <div class="editor-field">
                            @Html.TextBoxFor(m => m.ResetToken, new { @Value = @Request.QueryString["resetToken"] })
                            @Html.ValidationMessageFor(m => m.ResetToken)
                        </div>

                        <div class="editor-label">
                            @Html.LabelFor(m => m.NewPassword)
                        </div>
                        <div class="editor-field">
                            @Html.PasswordFor(m => m.NewPassword)
                            @Html.ValidationMessageFor(m => m.NewPassword)
                        </div>

                        <div class="editor-label">
                            @Html.LabelFor(m => m.ConfirmPassword)
                        </div>
                        <div class="editor-field">
                            @Html.PasswordFor(m => m.ConfirmPassword)
                            @Html.ValidationMessageFor(m => m.ConfirmPassword)
                        </div>

                        <p>
                            <input type="submit" value="Change Password" class="btn" />
                        </p>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
